﻿namespace NoIdeaWebApi.Dtos;
public class TestScopedDto : IDisposable
{
    readonly ILogger logger;
    public TestScopedDto(ILogger logger)
    {
        this.logger = logger;
    }
    readonly Guid guid = Guid.NewGuid();
    public string FlagId => guid.ToString("N");
    public void Dispose()
    {
        logger.LogInformation($"{nameof(TestScopedDto)}=>{FlagId}=>释放了...");
    }
}